add setOreBlock() to API#2480
Conversation
|
@Minepolz320 you need to run spotless |
|
@Dream-Master Whoops 😅 |
|
Isn't |
|
@YannickMG damn it's actually even easier |
|
@YannickMG yes but how can you allow the mod to run without gregtech I'm a bit of a noob when it comes to mod integration. |
|
and yet it seems to me more obvious to have this method in the API |
|
Any mod specific code needs to be guarded with The output of that method should be cached in a public static variable during preinit so that its not constantly checking if a mod is loaded. |
|
You could also consider not adding any dependency on gregtech. Instead you could add an API to Twilight Forest to allow overriding the code used to set the ore for each stalactite and call that API from NewHorizonsCoreMod. I can detail this tonight if you'd like. |
I think this is the best option for now |
For GTNewHorizons/twilightforest#36